import type { BasicFetchResult, BasicPageParams } from './baseModel';

export interface HotspotRecord {
  id: number;
  // 创建时间
  createTime: string;
  // 更新时间
  updateTime: string;
  // 点赞
  star: number;
  // 分享
  share: number;
  // 社区id
  community_id: number;
  // 内容
  content: string;
  // 话题id
  topic_id: number;
  // 用户id
  user_id: number;
  // 状态
  state: number;
  //
  recommend: number;
  // 图片
  img: string;
  // 用户名
  user_name: string;
  user_icon: string;
  // 话题名称
  topic_name: string;
  // 社区名称
  community_name: string;
}

export interface Hotspot_topicRecord {
  id: number;
  // comment: '话题'
  name: string;
  // 是否推荐 0不推荐 1推荐
  recommend: number;
  // comment: '图标'
  cover: string;
}

export type HotspotListModel = HotspotRecord[];

export type HotspotPageModel = BasicFetchResult<HotspotRecord>;

export type Hotspot_topicModel = Hotspot_topicRecord[];

export interface HotspotListParams {
  community_id?: number | string;
  topic_id?: number | string;
}

export interface Hotspot_topicListParams {
  recommend: number;
}

export type HotspotPageParams = BasicPageParams & HotspotListParams;
